import axios from "axios";
import {message} from "antd";
const authRequest = axios.create({
    baseURL:"/auth"
})
authRequest.interceptors.response.use(({data})=>{
    if(data.code === 200){
        return data;
    }
    message.error(data.message);
    return new Promise(()=>{});

})
export default authRequest;